package com.example.mapper;

import com.example.pojo.Activity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ActivityMapper {

    //添加活动
    @Insert("INSERT INTO activity (name, detail_desc) values (#{name}, #{detail_desc})")
    void InsertActivity(Activity activityVO);


    //查询活动
    @Select("select * from activity where id = #{id}")
    Activity queryActivity(int id);



}
